#=
测试作用量的计算
=#


#include("../src/pimary.jl")
push!(LOAD_PATH, "/Users/mary/workspace/")
using pimary

using Plots


function run()
    vol = 4.0
    a = 1
    b = 3.5
    println(map_to_1st(a-b, vol), " ", dis_to_1st(a-b, vol))
    a = [1, 2, 3, 4]
    b = [3.5, 2.5, 1.5, 0.5]
    println(map_to_1st.(a-b, vol))
    println(dis_to_1st.(a-b, vol))
    a = rand(5, 3)
    b = a + vol*rand(5, 3)
    println(a)
    println(b)
    println(a-b)
    println(map_to_1st.(a-b, vol))
    println(dis_to_1st.(a-b, vol))
end


run()

